<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Support\Facades\DB;

class RoleMenu extends BaseModel
{
    use HasFactory;
    public $timestamps = false;
    protected $table = 'sys_role_menu';
    protected $guarded = [];
    public function role()
    {
        return $this->belongsTo(Role::class);
    }
    public function permissions()
    {
        return $this->hasMany(RoleMenu::class, 'menu_id');
    }
}
